//
//  AETabbarView.h
//  Pods
//
//  Created by 徐 洋 on 14/11/27.
//
//

#import <UIKit/UIKit.h>

#if !defined(TABBAR_HEIGHT)
#define TABBAR_HEIGHT 90.0f
#endif


static NSString * const kTabbar = @"EFBTabbar";
static NSString * const kTabbarHidden = @"EFBTabbarHidden";
static NSString * const kTabbarItems = @"EFBTabbarItems";

static NSString * const kTabbarIcon = @"EFBTabbarIcon";
static NSString * const kTabbarTitle = @"EFBTabbarTitle";
static NSString * const kTabbarType = @"EFBTabbarType";  // VCIndex(default), Redirect

static NSString * const kTabbarVCIndex = @"EFBTabbarVCIndex"; // for VCIndex
static NSString * const kTabbarURL = @"EFBTabbarURL"; // for Redirect

static NSString * const kTabbarTypeVCIndex = @"VCIndex";
static NSString * const kTabbarTypeRedirect = @"Redirect";

@class AETabbarView;

@protocol AETabbarViewDelegate <NSObject>

- (void)tabbar:(AETabbarView *)tabbar didSelectedAtIndex:(NSInteger)index;

@end

@interface AETabbarView : UIView

@property (nonatomic, weak) id<AETabbarViewDelegate> delegate;

@property (nonatomic, strong) NSArray * indixes;

- (id)initWithConfig:(NSDictionary *)config;

@end
